/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: a1227
 * Date: 2022-07-20
 * Time: 10:12
 */
public class myArrayList {
    public static void main(String[] args) {
        arrayList list = new arrayList();
        list.add(0,1);
        list.add(1,2);
        list.add(2,3);
        list.add(3,4);
        list.add(4,5);
        list.display();
        //System.out.println(list.contains(1));
        //System.out.println(list.contains(10));
        //System.out.println(list.search(1));
        //System.out.println(list.search(4));
        //System.out.println(list.getPos(0));
        //System.out.println(list.getPos(2));
        //System.out.println(list.getPos(3));
        //list.setPos(0,3);
        //list.setPos(1,2);
        //list.setPos(2,1);
        //list.display();
        //list.setPos(4,11);
        //list.remove(1);
        //list.display();
        //list.remove(5);
        //list.display();
        //list.remove(3);
        //list.display();
        //list.remove(99);
        //System.out.println(list.size());
        //list.clear();
        //list.display();
    }
}
